<template>
  <div>
    <div class="main1">
      <div class="main1-content">
        <p class="main1-title">绘空事</p>
        <p class="main1-text">曾经沧海难为水 除却巫山不是云</p>
        <router-link to="/article"><el-button type="primary" class="main1-btn">START</el-button></router-link>
      </div>
      <div class="bottom-button" @click="btnClick">
        <el-button type="primary" icon="el-icon-arrow-down" circle></el-button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: '',
  methods: {
    btnClick() {
      document.getElementById("page2").scrollIntoView( {behavior:'smooth'} )
    }
  }
}
</script>

<style scoped>
  .main1 {
    justify-content: center;
    display: flex;
    flex-direction: column;
    height: 100vh;
    align-items: center;
    color: #fff;
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", 微软雅黑, Tahoma, Arial, sans-serif;
  }


  .main1-title {
    letter-spacing: 20px;
    font-size: 32px;
    margin: 0px;
    padding-left: 20px;
  }
  .main1-text {
    font-size: 16px;
    letter-spacing: 5px;
    line-height: 30px;
    padding-left: 5px;
  }
  .main1-btn {
    width: 100px;
    margin-top: 10px;
  }

  .bottom-button {
    position:absolute;
    bottom: 2vh;
  }
  
</style>
